package main

import (
	"github.com/gin-gonic/gin"
	// "math/rand"
	"net/http"
	"time"
)

/**
 *
 * @return
 */
func api_user_login(c *gin.Context) {
	// rand.Seed(time.Now().Unix())
	// rnd := rand.Intn(100)
	c.Request.ParseForm()
	c.JSON(http.StatusOK, gin.H{
		// "time": time.Now().Format("2006-01-02 15:04:05"),
		"time": time.Now().UnixNano() / 1e6,
		"id":   "1",
		"extra_data": gin.H{
			"t":      "1",
			"mobile": "13837100001",
			"idcard": "100000000000000000",
		},
		"header":   c.Request.Header,
		"rawQuery": c.Request.URL.RawQuery,
		"postForm": c.Request.PostForm,
	})

	// c.JSON(http.StatusOK, gin.H{
	// 	"error": gin.H{
	// 		"code": 1404,
	// 		"msg":  "禁用状态",
	// 	},
	// })
}
